import request from '@/utils/request'
import Qs from 'qs'
// 设备订单列表
export function getList (params) {
  return request({
    params,
    url: '/back/order/getOrderList'
  })
}

//退款
export function refundOrder (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/order/refundOrder',
    headers:{'content-type': 'application/x-www-form-urlencoded'},
    
  })
}

export function endBackOrder (data) {
  return request({
    method: 'post',
    url: '/back/order/endBackOrder',
    headers:{'content-type': 'application/x-www-form-urlencoded'},
    data:Qs.stringify(data)
  })
}

export function getDetailsOrder (params) {
  return request({
    params,
    url: '/back/order/getDetailsOrder'
  })
}




//提现订单列表
export function getListCard (params) {
  return request({
    url: '/back/orderCard/getBackOrderCardList',
    params
  })
}


//提现订单列表
export function calculateMoney (params) {
  return request({
    url: '/back/order/calculateMoney',
    params
  })
}
